<?php
require_once("../include/bm_config.php");
$is_admin = isset($_SESSION['administrator']) || isset($_SESSION[$BM_ADMIN]);

if (!$is_admin)
{
    require_once("admin_footer.php");
    echo "<script language='javascript'>\n";
    echo "alert('请登录管理员帐号!');\n";
    echo "window.location=\"$BM_HOME\";\n";
    echo "</script>";
	echo "<a href='../loginpage.php'>请先登录管理员帐号！<br/>然后刷新本页。</a>";
    exit(0);
}
?>

